package com.sp.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sp.common.annotation.Excel;
import com.sp.common.core.domain.BaseEntity;

/**
 * 车辆对象 sys_vehicle
 *
 *
 * @date 2024-11-24
 */
public class SysVehicle extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 车辆ID
     */
    private Long id;

    /**
     * 车牌号
     */
    @Excel(name = "车牌号")
    private String licensePlate;

    /**
     * 停车位号
     */
    @Excel(name = "停车位号")
    private Long parkingSpotId;

    /**
     * 停车车辆类型（1-永久，0-临停）
     */
    @Excel(name = "停车车辆类型", readConverterExp = "1=-永久，0-临停")
    private Integer vehicleType;

    /**
     * 车主名字
     */
    @Excel(name = "车主名字")
    private String ownerName;

    /**
     * 车主联系电话
     */
    @Excel(name = "车主联系电话")
    private String ownerContact;

    /**
     * 删除标志（0正常，1删除）
     */
    private String delFlag;

    /**
     * 停车位
     */
    private SysParkingSpot sysParkingSpot;


    public SysParkingSpot getSysParkingSpot() {
        return sysParkingSpot;
    }

    public void setSysParkingSpot(SysParkingSpot sysParkingSpot) {
        this.sysParkingSpot = sysParkingSpot;
    }


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setLicensePlate(String licensePlate) {
        this.licensePlate = licensePlate;
    }

    public String getLicensePlate() {
        return licensePlate;
    }

    public void setParkingSpotId(Long parkingSpotId) {
        this.parkingSpotId = parkingSpotId;
    }

    public Long getParkingSpotId() {
        return parkingSpotId;
    }

    public void setVehicleType(Integer vehicleType) {
        this.vehicleType = vehicleType;
    }

    public Integer getVehicleType() {
        return vehicleType;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerContact(String ownerContact) {
        this.ownerContact = ownerContact;
    }

    public String getOwnerContact() {
        return ownerContact;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("licensePlate", getLicensePlate())
                .append("parkingSpotId", getParkingSpotId())
                .append("vehicleType", getVehicleType())
                .append("ownerName", getOwnerName())
                .append("ownerContact", getOwnerContact())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
